<link href="__STATIC__/admin/css/tab.css" type="text/css" rel="stylesheet">
<link href="__STATIC__/admin/css/profiles.css" type="text/css" rel="stylesheet">


<div id="right-content"> <!-- ngView:  -->
    <div class="profiles-container ng-scope" style="position: relative;">
        <div class="profiles-info ng-scope" id="profilesCheck">
            <form action="<?php echo U('goods/modify') ?>" method="post" enctype="multipart/form-data">
                <ul class="ng-scope">
                    <li>
                        <span>商品名称：</span>
                        <input type="text" name="ocont" placeholder="请输入商品名称" value="<?php echo $data['gname'] ?>">
                    </li>
                    <li>
                        <span>商品图片：</span>
                        <input type="file" name="cpic" placeholder="请选择商品图片">
                    </li>
                    <li>
                        <span>所属分类：</span>
                        <select name="cate">
                            <option value="0">请选择商品分类</option>
                            <?php foreach($catelist as $v){ ?>
                            <option value="<?php echo $v['cid'] ?>" <?php if($data['cid']==$v['cid']){  ?> selected <?php } ?> ><?php echo $v['cname'] ?></option>
                            <?php } ?>
                        </select>
                    </li>
                    <li>
                        <span>vip1价格：</span>
                        <input type="text" name="v1m" placeholder="请输入 vip1 价格" value="<?php echo $data['v1price'] ?>">
                    </li>
                    <li>
                        <span>vip2价格：</span>
                        <input type="text" name="v2m" placeholder="请输入 vip2 价格" value="<?php echo $data['v2price'] ?>">
                    </li>
                    <li>
                        <span>推荐价格：</span>
                        <input type="text" name="money" placeholder="请输入推荐价位" value="<?php echo $data['reprice'] ?>">
                    </li>
                    <li>
                        <span>商品备注：</span>
                        <input type="text" name="gnotes" placeholder="请输入商品备注" value="<?php echo $data['gnotes'] ?>">
                    </li>
                    <li>
                        <input type="hidden" name="gid" value="<?php echo $gid ?>">
                        <button class="hd-btn hd-btn-danger hd-btn-lg">保存修改</button>
                    </li>
                </ul>
            </form>
            <?php if($data['gpic']){ ?>
            <div class="pic_img">
                <img src="__ROOT__/<?php echo $data['gpic'] ?>" width="300">
            </div>
            <?php } ?>
        </div>
    </div>
</div>
</div>
</body>
</html>